//程序主文件
//引入server.js模块
var server = require('./server.js'); 
var router = require('./router.js');
//引入请求处理程序模块
var requestHandler=require("./requestHandler");

//定义一个路由数组，请求地址对应的处理函数
var handle = {};
handle["/"]=requestHandler.index;
handle["/index"]=requestHandler.index;
handle["/start"]=requestHandler.start;
handle["/upload"]=requestHandler.upload;
handle["/validatelogin"]=requestHandler.validatelogin;
handle["/show"]=requestHandler.show;


//调用server.js中的start函数
server.start(router.route,handle); 